import React, { Component } from 'react'
import One from './views/v6/One'
import Two from './views/v6/Two'
import Three from './views/v6/Three'
export default class App extends Component {
 constructor(){
  super()
  this.state={
    show:true
  }
 }
  render() {
    return (
      <div style={{display:'flex',height:'100vh',width:'100vw'}}>
        <button onClick={()=>{this.setState({show:false})}}>销毁three</button>
        <One></One>
        <Two></Two>
        {this.state.show&&<Three></Three>}
      </div>
    )
  }
}
